control
Class SimulatedBy

java.lang.Object
  extended by control.SimulatedBy

public class SimulatedBy
extends java.lang.Object

Class which contains a couple of states: one target state and one community state


Field Summary
private  CState communityState
           
private  State targetState
           
 
Constructor Summary
SimulatedBy()
           
SimulatedBy(State ts, CState cs)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 CState getCommunityState()
          gets the community state that simulates the target state in this pair
 State getTargetState()
          gets the target state which is present in this pair of states that are in simulation
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

targetState

private State targetState

communityState

private CState communityState
Constructor Detail

SimulatedBy

public SimulatedBy()

SimulatedBy

public SimulatedBy(State ts,
                   CState cs)
Method Detail

getTargetState

public State getTargetState()
gets the target state which is present in this pair of states that are in simulation

Returns:
a state of the target service

getCommunityState

public CState getCommunityState()
gets the community state that simulates the target state in this pair

Returns:
a list of states which represent a community state

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object